#include <iostream>


class Integer
{
private:
    int m_a;
public:
    explicit Integer(int a);
    int getIneger();
    ~Integer();
};


Integer::Integer(int a)
{
    std::cout<<"构造\n";

    m_a = a;
}

int Integer::getIneger()
{
    return m_a;;
}

Integer::~Integer()
{
    std::cout<<"析构\n";
}


int main()
{
    Integer i(10);
    //i= 20;//20 匿名对象 构造函数的隐式转换 数值会被构造成类的对象
    std::cout<<i.getIneger()<<std::endl;
    return 0;
}